import request from '@/utils/request'

export function getAllRoles(params) {
	return request({
		url: '/province/roleManage/allRoles',
		method: 'get',
		params
	})
}

export function deleteRole(params) {
	return request({
		url: '/province/roleManage/deleteRole',
		method: 'delete',
		params
	})
}

export function createRole(data) {
	return request({
		url: '/province/roleManage/createRole',
		method: 'post',
		data
	})
}

export function modifyRole(data) {
	return request({
		url: '/province/roleManage/modifyRole',
		method: 'put',
		data
	})
}